package com.eclipse.e20200125_xml_properties_注解.properties;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.Properties;

public class Test {
	public static void main(String[] args) throws FileNotFoundException, IOException {
		Properties config = new Properties();
		config.load(new FileReader("/Users/liuzhuangzhuang/eclipse/qf/0115_xml_注解_反射/src/jdbc_properties/config.properties"));

		String url = config.getProperty("jdbc.url");
		String userName = config.getProperty("jdbc.username");
		String password = config.getProperty("jdbc.password");
		System.out.println(url);
		System.out.println(userName);
		System.out.println(password);
		//config.setProperty(key, value);	
	}
}
